﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Gestion.Ui;


public partial class Editor_DropDownListEditor : BaseUserControl
    {
        public Int32 SelectedIndex
        {
            get
            {
                return EditorDropDownList.SelectedIndex;
            }
        }

        public String ValidationGroup
        {
            set
            {
                EditorRequiredFieldValidator.ValidationGroup = value;
                EditorDropDownList.ValidationGroup = value;
            }
            get
            {
                return EditorDropDownList.ValidationGroup;
            }
        }

        public String Label
        {
            set
            {
                EditorLabel.Text = value;
            }
            get
            {
                return EditorLabel.Text;
            }
        }

        public String Value
        {
            set
            {
                EditorDropDownList.SelectedValue = value;
            }
            get
            {
                return EditorDropDownList.SelectedValue;
            }
        }

        public System.Web.UI.WebControls.Unit Height
        {
            set
            {
                EditorDropDownList.Height = value;
            }
            get
            {
                return EditorDropDownList.Height;
            }
        }

        public System.Web.UI.WebControls.Unit Width
        {
            set
            {
                EditorDropDownList.Width = value;
            }
            get
            {
                return EditorDropDownList.Width;
            }
        }

        public object DataSource
        {
            set
            {
                EditorDropDownList.DataSource = value;
                EditorDropDownList.DataBind();
            }
        }

        public string DataValueField
        {
            set
            {
                EditorDropDownList.DataValueField = value;
            }
        }

        public string DataTextField
        {
            set
            {
                EditorDropDownList.DataTextField = value;
            }
        }
    }
